﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CostApproval.aspx.cs" Inherits="CostManage_CostApproval" EnableEventValidation="false" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>电费审批管理</title>
    <script type="text/javascript" src="../Scripts/jquery-1.8.3.js"></script>
    <script type="text/javascript" src="../Scripts/jquery-ui-1.9.2.custom.min.js"></script>
    <script type="text/javascript" src="../Scripts/jquery.bgiframe.js"></script>
    <link rel="Stylesheet" href="../Content/redmond/jquery-ui-1.9.2.custom.min.css" />
    <link rel="stylesheet" href="../Content/SysManage.css" type="text/css" />  
    <script type="text/javascript" src="../Scripts/CostManage/CostApproval.js"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="ContentDiv">
        <p>
                <label for="Dep_A" class="lTitle">
                    区域：</label>
                <asp:DropDownList ID="Dep_A" runat="server" Enabled="false" CssClass="ui-widget-content">
                </asp:DropDownList>
                <label for="Cell_CHName_A" class="lTitle" style="margin-left:85px">
                    基站:</label>
                <asp:TextBox ID="Cell_CHName_A" runat="server" MaxLength="50" CssClass="text ui-widget-content"></asp:TextBox>
                <label style="font-size:small; color:Red">*模糊查找</label> 
                <asp:Button ID="Query_Location" runat="server" Text="查询" OnClick="QueryLocation_Click" CssClass="BtnLeft" />
                <asp:Button ID="Excel" runat="server" Text="导出EXCEL" OnClick="Excel_Click" />  
            </p>
            <asp:GridView ID="ApprovalList" runat="server" AutoGenerateColumns="False" EmptyDataText="对不起,未找到相关数据！"
                Width="100%" CssClass="ui-widget ui-widget-content" OnRowCommand="Approval_RowCommand">
                <HeaderStyle CssClass="ui-widget-header" />
                <Columns>
                    <asp:TemplateField HeaderText="序号">  
                     <HeaderTemplate>  
                       <input type="checkbox" name="BoxIdAll" id="BoxIdAll" onclick="onclicksel();" />  
                     </HeaderTemplate>  
                     <ItemTemplate>  
                       <input id="BoxId" name="BoxId" value='<%#(Convert.ToString(Eval("ORDER_NO")))%>' type="checkbox" />  
                     </ItemTemplate>  
                     <ItemStyle Height="25px" HorizontalAlign="Center" />  
                     <HeaderStyle Width="5%" Height="28px" HorizontalAlign="Center" />  
                   </asp:TemplateField>     
                    <asp:BoundField DataField="ORDER_NO" HeaderText="单号"/> 
                    <asp:BoundField DataField="organ" HeaderText="区域"/>
                    <asp:BoundField DataField="PHYSICAL_NAME" HeaderText="站点名称"/>
                    <asp:BoundField DataField="meterway" HeaderText="计量方式"/> 
                    <asp:BoundField DataField="meter_now" HeaderText="电表读数"/>                                   
                    <asp:BoundField DataField="last_meter" HeaderText="上期读数"/>                                   
                    <asp:BoundField DataField="rating_fee" HeaderText="额定费用"/>                                   
                    <asp:BoundField DataField="realpay" HeaderText="实际支付" />
                    <asp:BoundField DataField="read_date" HeaderText="抄表日期" DataFormatString="{0:yyyy-MM-dd}" />
                    <asp:BoundField DataField="INPUT_DATE" HeaderText="申请日期" DataFormatString="{0:yyyy-MM-dd}"/>
                    <asp:TemplateField>
                        <ItemStyle HorizontalAlign="Right" />
                        <ItemTemplate>
                            <asp:Button ID="ShowDetail" runat="server" Font-Size="13px" CausesValidation="false"
                                Text="查看" CommandName="Show" CommandArgument='<%# Bind("ORDER_NO")%>' 
                                CssClass="ui-button ui-state-default ui-corner-all"/>
                            <asp:Button ID="Approval" runat="server" Font-Size="13px" CausesValidation="false"
                                Text="审批通过" CommandName="Approval" CommandArgument='<%# Bind("ORDER_NO")%>' 
                                CssClass="ui-button ui-state-default ui-corner-all"/>
                            <asp:Button ID="Reback" runat="server" Font-Size="13px" CausesValidation="false"
                                Text="退回" CommandName="Reback" 
                                CommandArgument='<%# Bind("ORDER_NO")%>' CssClass="ui-button ui-state-default ui-corner-all"/>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            <div style="text-align: right; padding: 5px;">
                <webdiyer:AspNetPager ID="ApprovalPager" runat="server" OnPageChanged="ApprovalPager_PageChanged">
                </webdiyer:AspNetPager>
            </div>
            <p class="ActionP">
                <asp:HiddenField ID="HidRID" runat="server" />
                <asp:Button ID="Approval" runat="server" Text="审核通过" OnClick="Approval_Click"
                 OnClientClick="return batchAudit(this.id)" /></p> 
            <fieldset>
            <legend>已审批列表</legend>
            <asp:GridView ID="AppedList" runat="server" AutoGenerateColumns="False" EmptyDataText="对不起,未找到相关数据！"
                Width="100%" CssClass="ui-widget ui-widget-content">
                <HeaderStyle CssClass="ui-widget-header" />
                <Columns>
                    <asp:BoundField DataField="ORDER_NO" HeaderText="单号"/> 
                    <asp:BoundField DataField="PHYSICAL_NAME" HeaderText="站点名称"/>
                    <asp:BoundField DataField="realpay" HeaderText="实际支付" />                    
                    <asp:BoundField DataField="INPUT_DATE" HeaderText="申请日期" DataFormatString="{0:yyyy-MM-dd}"/>
                    <asp:BoundField DataField="MODIFY_DATE" HeaderText="审批日期" DataFormatString="{0:yyyy-MM-dd}"/>
                    <asp:BoundField DataField="STATUS" HeaderText="状态" />                    
                </Columns>
            </asp:GridView>
            <div style="text-align: right; padding: 5px;">
                <webdiyer:AspNetPager ID="AppedPager" runat="server" OnPageChanged="AppedPager_PageChanged">
                </webdiyer:AspNetPager>
            </div>
            </fieldset>
   </div>    
   <div id="MeterDiv" class="DialogDiv">    
        <div style="width:290px; margin:0;" class="ui-corner-all">     
        <fieldset style="float:left">
        <legend>本次</legend>             
                <p>
                    <label for="PHYSICAL_NAME">
                        站点名称:</label>
                    <asp:TextBox ID="PHYSICAL_NAME" runat="server" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="128" ReadOnly="true"></asp:TextBox></p>
               <p class="ChangeShow4">
                    <label for="Meter_Now">
                        电表读数:</label>
                    <asp:TextBox runat="server" ID="Meter_Now" CssClass="text ui-widget-content ui-corner-all"
                      ></asp:TextBox>
                </p>
               <p class="ChangeShow4">
                    <label for="USUAL_PRICE">
                        平时电价:</label>
                    <asp:TextBox runat="server" ID="USUAL_PRICE" CssClass="text ui-widget-content ui-corner-all"
                      MaxLength="18" ></asp:TextBox>
                </p> 
               <p class="ChangeShow ChangeShow4">
                    <label for="PEAK_METER">
                        峰时表值:</label>
                    <asp:TextBox runat="server" ID="PEAK_METER" CssClass="text ui-widget-content ui-corner-all"
                      ></asp:TextBox>
                </p>
               <p class="ChangeShow ChangeShow4">
                    <label for="PEAK_PRICE">
                        峰时电价:</label>
                    <asp:TextBox runat="server" ID="PEAK_PRICE" CssClass="text ui-widget-content ui-corner-all"
                      MaxLength="18" ></asp:TextBox>
                </p>  
               <p class="ChangeShow ChangeShow4">
                    <label for="VALLEY_METER">
                        谷时表值:</label>
                    <asp:TextBox runat="server" ID="VALLEY_METER" CssClass="text ui-widget-content ui-corner-all"
                      ></asp:TextBox>
                </p>   
               <p class="ChangeShow ChangeShow4">
                    <label for="VALLEY_PRICE">
                        谷时电价:</label>
                    <asp:TextBox runat="server" ID="VALLEY_PRICE" CssClass="text ui-widget-content ui-corner-all"
                      MaxLength="18" ></asp:TextBox>
                </p>   
               <p class="ChangeShow3 ChangeShow4">
                    <label for="REMAIN_METER">
                        本期结余:</label>
                    <asp:TextBox runat="server" ID="REMAIN_METER" CssClass="text ui-widget-content ui-corner-all"
                      ></asp:TextBox>
                </p>        
               <p class="ChangeShow4">
                    <label for="Melting">
                        用电量:</label>
                    <asp:TextBox runat="server" ID="Melting" ReadOnly="true" CssClass="text ui-widget-content ui-corner-all"
                      ></asp:TextBox>
                </p>  
               <p class="ChangeShow4">
                    <label for="Read_Date">
                        抄表日期:</label>
                    <asp:TextBox runat="server" ID="Read_Date" AutoCompleteType="none" CssClass="text ui-widget-content ui-corner-all"
                        ></asp:TextBox>
                </p>                
                <p>
                    <label for="Pay_Date">
                        缴费日期:</label>
                    <asp:TextBox runat="server" ID="Pay_Date" AutoCompleteType="none" CssClass="text ui-widget-content ui-corner-all"
                        ></asp:TextBox>
                </p>                  
                <p class="ChangeShow2">
                    <label for="Agree_Fee">
                        协定金额:</label>
                    <asp:TextBox runat="server" ID="Agree_Fee" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="18" ></asp:TextBox>
                </p>
               <p class="ChangeShow4">
                    <label for="Loss_Meter">
                        变损电量:</label>
                    <asp:TextBox runat="server" ID="Loss_Meter" CssClass="text ui-widget-content ui-corner-all">
                    </asp:TextBox>
                </p>                        
               <p class="ChangeShow4">
                    <label for="IFAir">
                        空调开放:</label>
                    <asp:DropDownList runat="server" ID="IFAir" CssClass="text ui-widget-content ui-corner-all">
                        <asp:ListItem Selected="True">否</asp:ListItem>
                        <asp:ListItem>是</asp:ListItem>
                    </asp:DropDownList>
                </p>                
               <p>
                    <label for="RealPay">
                        实际支付:</label>
                    <asp:TextBox runat="server" ID="RealPay" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="18" ></asp:TextBox>
                </p> 
               <p class="ChangeShow4">
                    <label for="Rating_Fee">
                        额定费用:</label>
                    <asp:TextBox runat="server" ID="Rating_Fee" ReadOnly="true" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="18" ></asp:TextBox>
                </p>     
               <p>
                    <label for="VAT">
                        增值税款:</label>
                    <asp:TextBox runat="server" ID="VAT" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="14" ></asp:TextBox>
                </p> 
               <p>
                    <label for="FARE">
                        普通票款:</label>
                    <asp:TextBox runat="server" ID="FARE" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="14" ></asp:TextBox>
                </p>               
                <p>
                    <label for="Fee_Remark"  style="vertical-align: top;">
                        费用说明:</label>
                    <asp:TextBox runat="server" ID="Fee_Remark" CssClass="text ui-widget-content ui-corner-all"
                        TextMode="MultiLine" Rows="4" Columns="13"></asp:TextBox>
                </p>   
                <p style="display:none">  
                    <asp:Label ID="ORDER_NO" runat="server"></asp:Label>
                    <asp:Label ID="METERWAY" runat="server"></asp:Label>
                    <asp:Label ID="Billing_Way" runat="server"></asp:Label>
                </p>                  
            </fieldset>
            <fieldset style="float:left;">
            <legend>上次</legend>
            <p>
                    <asp:TextBox ID="TextBox1" runat="server" CssClass="text ui-widget-content ui-corner-all PHide"
                        MaxLength="128"></asp:TextBox></p>
            <p class="ChangeShow4">
                    <asp:TextBox ID="Meter_Last" runat="server" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="18" ReadOnly="true"></asp:TextBox></p>
            <p class="ChangeShow4">
                    <asp:TextBox ID="USUAL_PRICE_Last" runat="server" CssClass="text ui-widget-content ui-corner-all PHide"
                        MaxLength="18" ReadOnly="true"></asp:TextBox></p>
            <p class="ChangeShow ChangeShow4">
                    <asp:TextBox ID="PEAK_METER_Last" runat="server" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="18" ReadOnly="true"></asp:TextBox></p>
            <p class="ChangeShow ChangeShow4">
                    <asp:TextBox ID="TextBox2" runat="server" CssClass="text ui-widget-content ui-corner-all PHide"
                         ></asp:TextBox></p>
            <p class="ChangeShow ChangeShow4">
                    <asp:TextBox ID="VALLEY_METER_Last" runat="server" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="18" ReadOnly="true"></asp:TextBox></p>
            <p class="ChangeShow ChangeShow4">
                    <asp:TextBox ID="TextBox3" runat="server" CssClass="text ui-widget-content ui-corner-all PHide"
                         ></asp:TextBox></p>
                       <p class="ChangeShow3 ChangeShow4">
                    <asp:TextBox ID="Last_Remain" runat="server" CssClass="text ui-widget-content ui-corner-all"
                        MaxLength="18" ReadOnly="true"></asp:TextBox></p> 
                        <p class="ChangeShow4">
                    <asp:TextBox ID="TextBox4" runat="server" CssClass="text ui-widget-content ui-corner-all PHide"
                         ></asp:TextBox></p>
                        <p class="ChangeShow4">
                    <asp:TextBox ID="Last_Date" runat="server" CssClass="text ui-widget-content ui-corner-all"
                         ReadOnly="true"></asp:TextBox></p> 
                    <p class="ChangeShow2">
                    <asp:TextBox ID="Last_Pay" runat="server" CssClass="text ui-widget-content ui-corner-all"
                         ReadOnly="true"></asp:TextBox></p>
                        <p>
                    <asp:TextBox ID="TextBox9" runat="server" CssClass="text ui-widget-content ui-corner-all PHide"
                        MaxLength="18" ReadOnly="true"></asp:TextBox></p>
                        <p class="ChangeShow4">
                    <asp:TextBox ID="Last_Loss" runat="server" CssClass="text ui-widget-content ui-corner-all PHide"
                        MaxLength="18" ReadOnly="true"></asp:TextBox></p>
                        <p class="ChangeShow4">
                    <asp:TextBox ID="TextBox11" runat="server" CssClass="text ui-widget-content ui-corner-all PHide"
                        MaxLength="128" ReadOnly="true"></asp:TextBox></p>
                        <p>
                    <asp:TextBox ID="TextBox12" runat="server" CssClass="text ui-widget-content ui-corner-all PHide"
                        MaxLength="128" ReadOnly="true"></asp:TextBox></p>
                        <p class="ChangeShow4">
                    <asp:TextBox ID="TextBox13" runat="server" CssClass="text ui-widget-content ui-corner-all PHide"
                        MaxLength="128" ReadOnly="true"></asp:TextBox></p> <p>
                    <asp:TextBox ID="TextBox5" runat="server" CssClass="text ui-widget-content ui-corner-all PHide"
                        MaxLength="128" ReadOnly="true"></asp:TextBox></p><p>    
                    <asp:TextBox ID="TextBox6" runat="server" CssClass="text ui-widget-content ui-corner-all PHide"
                        MaxLength="128" ReadOnly="true"></asp:TextBox></p>                         
                     <p><asp:TextBox runat="server" ID="TextBox14" CssClass="text ui-widget-content ui-corner-all PHide"
                        TextMode="MultiLine" Rows="4" Columns="13" ReadOnly="true"></asp:TextBox></p>
            </fieldset>
            </div>
            <p class="ActionP">
                <input id="BtnCancel" type="button" value="返回" /></p>
    </div> 
    </form>
</body>
</html>
